# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=razergenie
pkgver=0.9.0
pkgrel=0
pkgdesc="Qt application for configuring your Razer devices under GNU/Linux"
url="https://github.com/z3ntu/RazerGenie"
arch="all"
license="GPL-3.0-or-later"
depends="openrazer"
makedepends="
	meson
	qt5-qtbase-dev
	qt5-qttools-dev
	qtchooser
	"
source="https://github.com/z3ntu/razergenie/archive/v$pkgver/razergenie-v$pkgver.tar.gz"
builddir="$srcdir/RazerGenie-$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
77b3a6695fac5f7baf1968a87e3115bba80acbcd812c0504b0b37db99ab98c696ac5e3ad1ac61a2a8da857007ea5c2ae07f7f8414a29f512ccb770eef1b166b6  razergenie-v0.9.0.tar.gz
"
